/*
 * @Description  :
 * @Autor        : guoxi
 * @Date         : 2022-07-29 11:43:07
 * @LastEditors  :
 * @LastEditTime : 2022-07-29 11:43:07
 * @FilePath     : \rpms\src\api\contract.ts
 */
import http from "../utils/http/service";
// ----------------------------项目管理相关--------------------------------------------

// 新增合同
export const postContractAdd = (data): any => {
  return http.post("/rdms-admin/rdContract/add", data);
};

// 删除合同
export const postContractDelete = (data): any => {
  return http.post("/rdms-admin/rdContract/delete", data);
};

// 删除合同
export const postContractUpdate = (data): any => {
  return http.post("/rdms-admin/rdContract/update", data);
};

// 合同列表
export const postContractList = (data): any => {
  return http.post("/rdms-admin/rdContract/contractList", data);
};

export const getContractInfo = (data): any => {
  return http.get(`/rdms-admin/rdContract/info/${data.id}`);
};
